import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'


Vue.use(Router)

import Home from "@/components/Home"
import Login from "@/components/common/Login"
import Register from "@/components/common/Register";
import QQCallBack from "@/components/common/QQCallBack";
import Writer from "@/components/common/Writer";
import PostArticle from "@/components/common/PostArticle";
import Article from "@/components/common/Article";
import AliPay from "@/components/common/AliPay";

export default new Router({
  mode:"history",
  routes: [
    {
      path: '/',
      name: "Home",
      component: Home ,
         },
     {
      path: '/login',
      name: "Login",
      component: Login ,
         },
     {
      path: '/register',
      name: "Register",
      component: Register ,
         },
    {
      path: '/oauth_callback.html',
      name: "QQCallBack",
      component: QQCallBack ,
         },
     {
      path: '/writer',
      name: "Writer",
      component: Writer ,
         },
    {
      path: '/post',
      name: "PostArticle",
      component: PostArticle ,
         },
    {
       name:"Article",
       path:"/article/:id",
       component: Article,
     },
    {
       name:"AliPay",
       path:"/payments/alipay",
       component: AliPay,
     },
  ]
})
